# -*- coding: utf-8 -*-

"""自定义django admin actions"""


def copy_objects(modeladmin, request, queryset):
    print modeladmin.model._meta.verbose_name or modeladmin.model._meta.object_name
    print request
    print queryset
    msg = modeladmin.model._meta.verbose_name or modeladmin.model._meta.object_name
    modeladmin.message_user(request, '%s successfully copy.' % msg)


copy_objects.short_description = 'copy'
